﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Org_frmO_TrainingListCheck : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Org_MasterPage)this.Master).changeTitle("講習実施予定表（確認）");
        
        GridView1.DataSource = myTable();
        GridView1.DataBind();
    }

    public DataTable myTable()
    {
        //LinkButton li = new LinkButton();
        //System.Web.UI.WebControls.HyperLink hp = new System.Web.UI.WebControls.HyperLink();
        // hp.Text = "修正";
        //li.PostBackUrl = "";
        // hp.NavigateUrl = "";
        //hp.


        DataTable dt = new DataTable();
        DataColumn col;
        DataRow row;
        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "1";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "2";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "3";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "4";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "5";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "6";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "7";
        dt.Columns.Add(col);

       

        row = dt.NewRow();
        //row["8"] = "修正";
        dt.Rows.Add(row);
        //return dt;

        for (int i = 0; i <= 9; i++)
        {
            row = dt.NewRow();
            row["1"] = " ";
            row["2"] = " ";
            row["3"] = " ";
            row["4"] = " ";
            row["5"] = " ";
            row["6"] = " ";
            row["7"] = " ";
            //row["8"] = "修正";
            dt.Rows.Add(row);
        }
        return dt;
    }
}
